package com.basic.number;

import java.util.ArrayList;
import java.util.List;

public class NumberAvgSegment {

	public static void main(String[] args) {
		int a = 50;
		int b =10;
		int num = a/b;
		int lastNum = a%b;
		List<Integer> list = new ArrayList();
		for (int i =0;i<num;i++){
		    list.add(b);
		}
		if(lastNum != 0){
		    list.add(lastNum);
		}
		System.out.println(list);
	}
}
